package com.wanbangee.marksystem.service.imp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.SScoreDao;
import com.wanbangee.marksystem.service.ObjectiveOptionDistributionService;

@Service
public class ObjectiveOptionDistributionServiceImp implements ObjectiveOptionDistributionService {

	@Autowired
	private SScoreDao sScoreDao;
	
	@Override
	public List<Map> selectObjectOptionDistribution(Integer examId, Integer subId, Integer claId, String topicNo) {
		return this.sScoreDao.selectObjectOptionDistribution(examId, subId, claId, topicNo);
	}

	@Override
	public List<Map> selectObjectiveStudentOption(Integer examId, Integer subId, Integer claId, String topicNo,
			String option, String stuNmAndStuNo, Integer pageNum, Integer pageSize) {
		return this.sScoreDao.selectObjectiveStudentOption(examId, claId, subId, topicNo, option, "%"+stuNmAndStuNo+"%", pageNum-1, pageSize);
	}

}
